using System.Collections.Generic;
using UnityEngine;

public class TTAiPlayerDefinitions : ScriptableObjectSingleton<TTAiPlayerDefinitions>
{
	public List<TTAiPlayerDefinition> players = new List<TTAiPlayerDefinition>();

	public TTAiPlayerDefinition GetDefinition(int definitionIndex)
	{
		int num = 0;
		foreach (TTAiPlayerDefinition player in players)
		{
			player.index = num;
			num++;
		}
		return players[Mathf.Clamp(definitionIndex, 0, players.Count - 1)];
	}
}
